package com.example.demo;

import org.springframework.stereotype.Service;

@Service
public class UserService {

	public User findUserById(String userid) {
		if ("1".equals( userid)) {
			User user = new User();
			user.setId("1");
			user.setUsername("admin");
			user.setPassword("admin");
			return user;
		}
		return null;
	}
	
}
